package org.jeecg.modules.friends.condition;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SystemConfigCondition {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public SystemConfigCondition() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andInviteUserVipIsNull() {
            addCriterion("invite_user_vip is null");
            return (Criteria) this;
        }

        public Criteria andInviteUserVipIsNotNull() {
            addCriterion("invite_user_vip is not null");
            return (Criteria) this;
        }

        public Criteria andInviteUserVipEqualTo(Integer value) {
            addCriterion("invite_user_vip =", value, "inviteUserVip");
            return (Criteria) this;
        }

        public Criteria andInviteUserVipNotEqualTo(Integer value) {
            addCriterion("invite_user_vip <>", value, "inviteUserVip");
            return (Criteria) this;
        }

        public Criteria andInviteUserVipGreaterThan(Integer value) {
            addCriterion("invite_user_vip >", value, "inviteUserVip");
            return (Criteria) this;
        }

        public Criteria andInviteUserVipGreaterThanOrEqualTo(Integer value) {
            addCriterion("invite_user_vip >=", value, "inviteUserVip");
            return (Criteria) this;
        }

        public Criteria andInviteUserVipLessThan(Integer value) {
            addCriterion("invite_user_vip <", value, "inviteUserVip");
            return (Criteria) this;
        }

        public Criteria andInviteUserVipLessThanOrEqualTo(Integer value) {
            addCriterion("invite_user_vip <=", value, "inviteUserVip");
            return (Criteria) this;
        }

        public Criteria andInviteUserVipIn(List<Integer> values) {
            addCriterion("invite_user_vip in", values, "inviteUserVip");
            return (Criteria) this;
        }

        public Criteria andInviteUserVipNotIn(List<Integer> values) {
            addCriterion("invite_user_vip not in", values, "inviteUserVip");
            return (Criteria) this;
        }

        public Criteria andInviteUserVipBetween(Integer value1, Integer value2) {
            addCriterion("invite_user_vip between", value1, value2, "inviteUserVip");
            return (Criteria) this;
        }

        public Criteria andInviteUserVipNotBetween(Integer value1, Integer value2) {
            addCriterion("invite_user_vip not between", value1, value2, "inviteUserVip");
            return (Criteria) this;
        }

        public Criteria andReadyToDeleteIsNull() {
            addCriterion("ready_to_delete is null");
            return (Criteria) this;
        }

        public Criteria andReadyToDeleteIsNotNull() {
            addCriterion("ready_to_delete is not null");
            return (Criteria) this;
        }

        public Criteria andReadyToDeleteEqualTo(Long value) {
            addCriterion("ready_to_delete =", value, "readyToDelete");
            return (Criteria) this;
        }

        public Criteria andReadyToDeleteNotEqualTo(Long value) {
            addCriterion("ready_to_delete <>", value, "readyToDelete");
            return (Criteria) this;
        }

        public Criteria andReadyToDeleteGreaterThan(Long value) {
            addCriterion("ready_to_delete >", value, "readyToDelete");
            return (Criteria) this;
        }

        public Criteria andReadyToDeleteGreaterThanOrEqualTo(Long value) {
            addCriterion("ready_to_delete >=", value, "readyToDelete");
            return (Criteria) this;
        }

        public Criteria andReadyToDeleteLessThan(Long value) {
            addCriterion("ready_to_delete <", value, "readyToDelete");
            return (Criteria) this;
        }

        public Criteria andReadyToDeleteLessThanOrEqualTo(Long value) {
            addCriterion("ready_to_delete <=", value, "readyToDelete");
            return (Criteria) this;
        }

        public Criteria andReadyToDeleteIn(List<Long> values) {
            addCriterion("ready_to_delete in", values, "readyToDelete");
            return (Criteria) this;
        }

        public Criteria andReadyToDeleteNotIn(List<Long> values) {
            addCriterion("ready_to_delete not in", values, "readyToDelete");
            return (Criteria) this;
        }

        public Criteria andReadyToDeleteBetween(Long value1, Long value2) {
            addCriterion("ready_to_delete between", value1, value2, "readyToDelete");
            return (Criteria) this;
        }

        public Criteria andReadyToDeleteNotBetween(Long value1, Long value2) {
            addCriterion("ready_to_delete not between", value1, value2, "readyToDelete");
            return (Criteria) this;
        }

        public Criteria andSystemReadyToDeleteIsNull() {
            addCriterion("system_ready_to_delete is null");
            return (Criteria) this;
        }

        public Criteria andSystemReadyToDeleteIsNotNull() {
            addCriterion("system_ready_to_delete is not null");
            return (Criteria) this;
        }

        public Criteria andSystemReadyToDeleteEqualTo(Long value) {
            addCriterion("system_ready_to_delete =", value, "systemReadyToDelete");
            return (Criteria) this;
        }

        public Criteria andSystemReadyToDeleteNotEqualTo(Long value) {
            addCriterion("system_ready_to_delete <>", value, "systemReadyToDelete");
            return (Criteria) this;
        }

        public Criteria andSystemReadyToDeleteGreaterThan(Long value) {
            addCriterion("system_ready_to_delete >", value, "systemReadyToDelete");
            return (Criteria) this;
        }

        public Criteria andSystemReadyToDeleteGreaterThanOrEqualTo(Long value) {
            addCriterion("system_ready_to_delete >=", value, "systemReadyToDelete");
            return (Criteria) this;
        }

        public Criteria andSystemReadyToDeleteLessThan(Long value) {
            addCriterion("system_ready_to_delete <", value, "systemReadyToDelete");
            return (Criteria) this;
        }

        public Criteria andSystemReadyToDeleteLessThanOrEqualTo(Long value) {
            addCriterion("system_ready_to_delete <=", value, "systemReadyToDelete");
            return (Criteria) this;
        }

        public Criteria andSystemReadyToDeleteIn(List<Long> values) {
            addCriterion("system_ready_to_delete in", values, "systemReadyToDelete");
            return (Criteria) this;
        }

        public Criteria andSystemReadyToDeleteNotIn(List<Long> values) {
            addCriterion("system_ready_to_delete not in", values, "systemReadyToDelete");
            return (Criteria) this;
        }

        public Criteria andSystemReadyToDeleteBetween(Long value1, Long value2) {
            addCriterion("system_ready_to_delete between", value1, value2, "systemReadyToDelete");
            return (Criteria) this;
        }

        public Criteria andSystemReadyToDeleteNotBetween(Long value1, Long value2) {
            addCriterion("system_ready_to_delete not between", value1, value2, "systemReadyToDelete");
            return (Criteria) this;
        }

        public Criteria andTicketIsNull() {
            addCriterion("ticket is null");
            return (Criteria) this;
        }

        public Criteria andTicketIsNotNull() {
            addCriterion("ticket is not null");
            return (Criteria) this;
        }

        public Criteria andTicketEqualTo(Integer value) {
            addCriterion("ticket =", value, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketNotEqualTo(Integer value) {
            addCriterion("ticket <>", value, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketGreaterThan(Integer value) {
            addCriterion("ticket >", value, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketGreaterThanOrEqualTo(Integer value) {
            addCriterion("ticket >=", value, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketLessThan(Integer value) {
            addCriterion("ticket <", value, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketLessThanOrEqualTo(Integer value) {
            addCriterion("ticket <=", value, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketIn(List<Integer> values) {
            addCriterion("ticket in", values, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketNotIn(List<Integer> values) {
            addCriterion("ticket not in", values, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketBetween(Integer value1, Integer value2) {
            addCriterion("ticket between", value1, value2, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketNotBetween(Integer value1, Integer value2) {
            addCriterion("ticket not between", value1, value2, "ticket");
            return (Criteria) this;
        }

        public Criteria andExtDataIsNull() {
            addCriterion("ext_data is null");
            return (Criteria) this;
        }

        public Criteria andExtDataIsNotNull() {
            addCriterion("ext_data is not null");
            return (Criteria) this;
        }

        public Criteria andExtDataEqualTo(String value) {
            addCriterion("ext_data =", value, "extData");
            return (Criteria) this;
        }

        public Criteria andExtDataNotEqualTo(String value) {
            addCriterion("ext_data <>", value, "extData");
            return (Criteria) this;
        }

        public Criteria andExtDataGreaterThan(String value) {
            addCriterion("ext_data >", value, "extData");
            return (Criteria) this;
        }

        public Criteria andExtDataGreaterThanOrEqualTo(String value) {
            addCriterion("ext_data >=", value, "extData");
            return (Criteria) this;
        }

        public Criteria andExtDataLessThan(String value) {
            addCriterion("ext_data <", value, "extData");
            return (Criteria) this;
        }

        public Criteria andExtDataLessThanOrEqualTo(String value) {
            addCriterion("ext_data <=", value, "extData");
            return (Criteria) this;
        }

        public Criteria andExtDataLike(String value) {
            addCriterion("ext_data like", value, "extData");
            return (Criteria) this;
        }

        public Criteria andExtDataNotLike(String value) {
            addCriterion("ext_data not like", value, "extData");
            return (Criteria) this;
        }

        public Criteria andExtDataIn(List<String> values) {
            addCriterion("ext_data in", values, "extData");
            return (Criteria) this;
        }

        public Criteria andExtDataNotIn(List<String> values) {
            addCriterion("ext_data not in", values, "extData");
            return (Criteria) this;
        }

        public Criteria andExtDataBetween(String value1, String value2) {
            addCriterion("ext_data between", value1, value2, "extData");
            return (Criteria) this;
        }

        public Criteria andExtDataNotBetween(String value1, String value2) {
            addCriterion("ext_data not between", value1, value2, "extData");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNull() {
            addCriterion("add_time is null");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNotNull() {
            addCriterion("add_time is not null");
            return (Criteria) this;
        }

        public Criteria andAddTimeEqualTo(Date value) {
            addCriterion("add_time =", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotEqualTo(Date value) {
            addCriterion("add_time <>", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThan(Date value) {
            addCriterion("add_time >", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("add_time >=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThan(Date value) {
            addCriterion("add_time <", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThanOrEqualTo(Date value) {
            addCriterion("add_time <=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeIn(List<Date> values) {
            addCriterion("add_time in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotIn(List<Date> values) {
            addCriterion("add_time not in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeBetween(Date value1, Date value2) {
            addCriterion("add_time between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotBetween(Date value1, Date value2) {
            addCriterion("add_time not between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andServiceConfigUrlIsNull() {
            addCriterion("service_config_url is null");
            return (Criteria) this;
        }

        public Criteria andServiceConfigUrlIsNotNull() {
            addCriterion("service_config_url is not null");
            return (Criteria) this;
        }

        public Criteria andServiceConfigUrlEqualTo(String value) {
            addCriterion("service_config_url =", value, "serviceConfigUrl");
            return (Criteria) this;
        }

        public Criteria andServiceConfigUrlNotEqualTo(String value) {
            addCriterion("service_config_url <>", value, "serviceConfigUrl");
            return (Criteria) this;
        }

        public Criteria andServiceConfigUrlGreaterThan(String value) {
            addCriterion("service_config_url >", value, "serviceConfigUrl");
            return (Criteria) this;
        }

        public Criteria andServiceConfigUrlGreaterThanOrEqualTo(String value) {
            addCriterion("service_config_url >=", value, "serviceConfigUrl");
            return (Criteria) this;
        }

        public Criteria andServiceConfigUrlLessThan(String value) {
            addCriterion("service_config_url <", value, "serviceConfigUrl");
            return (Criteria) this;
        }

        public Criteria andServiceConfigUrlLessThanOrEqualTo(String value) {
            addCriterion("service_config_url <=", value, "serviceConfigUrl");
            return (Criteria) this;
        }

        public Criteria andServiceConfigUrlLike(String value) {
            addCriterion("service_config_url like", value, "serviceConfigUrl");
            return (Criteria) this;
        }

        public Criteria andServiceConfigUrlNotLike(String value) {
            addCriterion("service_config_url not like", value, "serviceConfigUrl");
            return (Criteria) this;
        }

        public Criteria andServiceConfigUrlIn(List<String> values) {
            addCriterion("service_config_url in", values, "serviceConfigUrl");
            return (Criteria) this;
        }

        public Criteria andServiceConfigUrlNotIn(List<String> values) {
            addCriterion("service_config_url not in", values, "serviceConfigUrl");
            return (Criteria) this;
        }

        public Criteria andServiceConfigUrlBetween(String value1, String value2) {
            addCriterion("service_config_url between", value1, value2, "serviceConfigUrl");
            return (Criteria) this;
        }

        public Criteria andServiceConfigUrlNotBetween(String value1, String value2) {
            addCriterion("service_config_url not between", value1, value2, "serviceConfigUrl");
            return (Criteria) this;
        }

        public Criteria andVipItemUrlIsNull() {
            addCriterion("vip_item_url is null");
            return (Criteria) this;
        }

        public Criteria andVipItemUrlIsNotNull() {
            addCriterion("vip_item_url is not null");
            return (Criteria) this;
        }

        public Criteria andVipItemUrlEqualTo(String value) {
            addCriterion("vip_item_url =", value, "vipItemUrl");
            return (Criteria) this;
        }

        public Criteria andVipItemUrlNotEqualTo(String value) {
            addCriterion("vip_item_url <>", value, "vipItemUrl");
            return (Criteria) this;
        }

        public Criteria andVipItemUrlGreaterThan(String value) {
            addCriterion("vip_item_url >", value, "vipItemUrl");
            return (Criteria) this;
        }

        public Criteria andVipItemUrlGreaterThanOrEqualTo(String value) {
            addCriterion("vip_item_url >=", value, "vipItemUrl");
            return (Criteria) this;
        }

        public Criteria andVipItemUrlLessThan(String value) {
            addCriterion("vip_item_url <", value, "vipItemUrl");
            return (Criteria) this;
        }

        public Criteria andVipItemUrlLessThanOrEqualTo(String value) {
            addCriterion("vip_item_url <=", value, "vipItemUrl");
            return (Criteria) this;
        }

        public Criteria andVipItemUrlLike(String value) {
            addCriterion("vip_item_url like", value, "vipItemUrl");
            return (Criteria) this;
        }

        public Criteria andVipItemUrlNotLike(String value) {
            addCriterion("vip_item_url not like", value, "vipItemUrl");
            return (Criteria) this;
        }

        public Criteria andVipItemUrlIn(List<String> values) {
            addCriterion("vip_item_url in", values, "vipItemUrl");
            return (Criteria) this;
        }

        public Criteria andVipItemUrlNotIn(List<String> values) {
            addCriterion("vip_item_url not in", values, "vipItemUrl");
            return (Criteria) this;
        }

        public Criteria andVipItemUrlBetween(String value1, String value2) {
            addCriterion("vip_item_url between", value1, value2, "vipItemUrl");
            return (Criteria) this;
        }

        public Criteria andVipItemUrlNotBetween(String value1, String value2) {
            addCriterion("vip_item_url not between", value1, value2, "vipItemUrl");
            return (Criteria) this;
        }

        public Criteria andInvitedUrlIsNull() {
            addCriterion("invited_url is null");
            return (Criteria) this;
        }

        public Criteria andInvitedUrlIsNotNull() {
            addCriterion("invited_url is not null");
            return (Criteria) this;
        }

        public Criteria andInvitedUrlEqualTo(String value) {
            addCriterion("invited_url =", value, "invitedUrl");
            return (Criteria) this;
        }

        public Criteria andInvitedUrlNotEqualTo(String value) {
            addCriterion("invited_url <>", value, "invitedUrl");
            return (Criteria) this;
        }

        public Criteria andInvitedUrlGreaterThan(String value) {
            addCriterion("invited_url >", value, "invitedUrl");
            return (Criteria) this;
        }

        public Criteria andInvitedUrlGreaterThanOrEqualTo(String value) {
            addCriterion("invited_url >=", value, "invitedUrl");
            return (Criteria) this;
        }

        public Criteria andInvitedUrlLessThan(String value) {
            addCriterion("invited_url <", value, "invitedUrl");
            return (Criteria) this;
        }

        public Criteria andInvitedUrlLessThanOrEqualTo(String value) {
            addCriterion("invited_url <=", value, "invitedUrl");
            return (Criteria) this;
        }

        public Criteria andInvitedUrlLike(String value) {
            addCriterion("invited_url like", value, "invitedUrl");
            return (Criteria) this;
        }

        public Criteria andInvitedUrlNotLike(String value) {
            addCriterion("invited_url not like", value, "invitedUrl");
            return (Criteria) this;
        }

        public Criteria andInvitedUrlIn(List<String> values) {
            addCriterion("invited_url in", values, "invitedUrl");
            return (Criteria) this;
        }

        public Criteria andInvitedUrlNotIn(List<String> values) {
            addCriterion("invited_url not in", values, "invitedUrl");
            return (Criteria) this;
        }

        public Criteria andInvitedUrlBetween(String value1, String value2) {
            addCriterion("invited_url between", value1, value2, "invitedUrl");
            return (Criteria) this;
        }

        public Criteria andInvitedUrlNotBetween(String value1, String value2) {
            addCriterion("invited_url not between", value1, value2, "invitedUrl");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}